package cn.gson.crm.model.dao;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import cn.gson.crm.model.pojo.Emp;

public interface EmpDao extends PagingAndSortingRepository<Emp, Long> {

	@Query("select e from Emp e where e.empUsername=?1 and e.empPassword=?2")
	Emp loginCheck(String username,String password);

}
